package pl.auction_search.search;

import java.io.Serializable;

public class Result implements Serializable {
	private static final long serialVersionUID = 1L;

	protected final String name;
	protected final String url;
	protected final String description;
	protected final String category;
	protected final String engine;

	public Result(String name, String url, String description, String category, String engine) {
		this.name = name;
		this.url = url;
		this.description = description;
		this.category = category;
		this.engine = engine;
	}

	public String getUrl() {
		return url;
	}
	public String getDescription() {
		return description;
	}
	public String getCategory() {
		return category;
	}
	public String getName() {
		return name;
	}
	public String getEngine() {
		return engine;
	}

	@Override public String toString() {
		return getName();
	}

	//	@SuppressWarnings("unchecked") @Override public Object getAdapter(Class adapter) {
	//		return Platform.getAdapterManager().getAdapter(this, adapter);
	//	}
}
